//
//  FlowWaterLayout.h
//  瀑布流
//
//  Created by Crow Zhang on 15/11/9.
//  Copyright © 2015年 Crow Zhang. All rights reserved.
//

#import <UIKit/UIKit.h>

@protocol FlowWaterLayoutDelegate <UICollectionViewDelegateFlowLayout>

- (CGSize)collectionView:(UICollectionView *)collectionView layout:(UICollectionViewLayout *)collectionViewLayout sizeForItemAtIndexPath:(NSIndexPath *)indexPath;

@end

@interface FlowWaterLayout : UICollectionViewLayout

@property(nonatomic, assign)id<FlowWaterLayoutDelegate> delegate;

/**
 *  保存布局信息
 */
@property(nonatomic, strong)NSMutableArray *array;

/**
 *  记录当前contentView的大小
 */
@property(nonatomic, assign)CGFloat maxHeight;

@end
